package com_djm_2025_05_11;
/**
  @author dengjiangming
  @version 1.0.0
  @date 2025-05-15
 */
public class Demo7 {
    public static int fun(int n){
        if(n < 10){
            return n;
        }
        return fun(n / 10) + n % 10;
    }

    public static void main(String[] args) {
        System.out.println(fun(1729));
    }
}
